package genealogy.deprecated.datamodel.pedigree;

import genealogy.deprecated.datamodel.pedigree.visitors.IPedigreeVisitor;

import java.io.Serializable;

@Deprecated
public enum RelationshipType implements Serializable, IPedigreeVisitable{
	BASE, MOTHER, FATHER, SIBLING, SPOUSE, CHILD, UNKNOWN;
	
	public String toString(){
		String result = this.name().toLowerCase();
		if(result.length() > 1){
			result = Character.toString(result.charAt(0)).toUpperCase() + result.substring(1);
		}	
		return result;
	}

	/* (non-Javadoc)
	 * @see genealogy.datamodel.pedigree.IPedigreeVisitable#accept(genealogy.datamodel.pedigree.visitors.AbstractPedigreeVisitor)
	 */
	public void accept(IPedigreeVisitor visitor) {
		visitor.visit(this);
		visitor.endVisit();
	}
}
